Skip to content

Conversation

@fgregg
Copy link

@fgregg fgregg commented Jul 17, 2019

Hi @jsfenfen, this PR has a number of different pieces that you may or not be interested in. I can split things apart to just get you what you do care about.

@@ -0,0 +1,31 @@
export IRSX_CACHE_DIRECTORY=.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a Makefile I made for building the whole db.

perl -i.bak -p -e 's/SILVERCREST ASSET ,AMAGEMENT/SILVERCREST ASSET MANAGEMENT/g' $@
python manage.py enter_yearly_submissions 2014

download_filings_% :
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a lot faster to download the files using this the aws-cli and then run 'load_filings' then have load filings be responsible also for downloading.

On the downside, this requires folks to have an AWS account.

# },
# },
# ]
TEMPLATES = [
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needed to be uncommented in order for any of the management commands to run.

# row['canonical_version'] = CANONICAL_VERSION
#else:
# row['is_canonical'] = False
row['versions'] = row['versions'].split(';')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for using the github version of irsx.

@@ -1,4 +1,5 @@
from django.db import models
from django.contrib.postgres.fields import ArrayField
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i imagine you may not want to tie yourself to postgres. there is a portable version of jsonfield that could be used here.

try:
FILE_SYSTEM_BASE = settings.FILE_SYSTEM_BASE
except ImportError:
except AttributeError:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the correct exception catcher.

partname = part
partdata = sked['schedule_parts'][part]
#print("part %s %s" % (partname, partdata))
#self.stdout.write("part %s %s" % (partname, partdata))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just using the django command guidance here.

self.stdout.write("run_filing %s" % object_id)

# if we get a bad xml file, delete the file and retry once
try:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was useful for me.

@jsfenfen
Copy link
Owner

jsfenfen commented Jul 18, 2019 via email

@bcipolli
Copy link

Would recommend splitting off the change from version_start/version_end to versions, as that will be a breaking change for existing installs. Otherwise, I think this is good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants